package com.tuling.order.feign;

import feign.Param;
import feign.RequestLine;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author hzdc
 * @date 2022/4/23 15:02
 */
@FeignClient(name = "product-service", path = "/product")
public interface ProductFeignService {

    @RequestLine("GET /{id}}")
    public String get(@Param("id") Integer id);

}
